package cn.edu.sdjzu.service;

import cn.edu.sdjzu.entity.User;
import cn.edu.sdjzu.exception.BaseException;

import java.sql.SQLException;

public interface UserService {
    User find(Integer id) throws SQLException, BaseException;

    //这里修改user, 是不是就不用返回了，调用者使用引用
    int add(User user) throws SQLException;

    void login(User userToLogin) throws SQLException;
}
